package com.tdkj.model.decorate;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

@Entity
@Table(name = "decorate_diamond_custom_buy")
public class BeanDiamondCustomBuy extends BaseEntity {

	private BeanDiamondCustom custom;
	private Timestamp createTime;
	
	private BeanUser user;
	
	@ManyToOne(fetch=FetchType.LAZY, cascade={CascadeType.REFRESH})
	@JoinColumn(name="custom_id")
	public BeanDiamondCustom getCustom() {
		return custom;
	}
	
	public void setCustom(BeanDiamondCustom custom) {
		this.custom = custom;
	}
	
	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@ManyToOne(fetch=FetchType.LAZY, cascade={CascadeType.REFRESH})
	@JoinColumn(name="user_id")
	public BeanUser getUser() {
		return user;
	}

	public void setUser(BeanUser user) {
		this.user = user;
	}
	
	
	
}